﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HeaderControl.ascx.cs"
            Inherits="其他服务器控件综合使用.HeaderControl" %>
<div style="border: solid 1px #B5C7DE">
    <div style="text-align: center;">
        <table style="width: 100%;">
            <tr>
                <td style="width: 265px;">
                    <img alt="" src="images/logo.jpg" style="width: 265px; height: 77px" />
                </td>
                <td style="width: 478px;">
                    <img alt="" src="images/banner.jpg" style="width: 478px; height: 84px" />
                </td>
                <td style="text-align: center;">
                    设为首页<br />
                    加入收藏<br />
                    网站地图
                </td>
            </tr>
        </table>
    </div>
    <div style="background-color: #B5C7DE; padding: 5px 0px 5px 10px">
        <asp:Menu ID="mnuMain" Orientation="Horizontal" runat="server" BackColor="#B5C7DE"
                  DataSourceID="xdsMenu" DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="14px"
                  ForeColor="#284E98" StaticSubMenuIndent="10px">
            <StaticSelectedStyle BackColor="#507CD1" />
            <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <DynamicHoverStyle BackColor="#284E98" ForeColor="White" />
            <DynamicMenuStyle BackColor="#B5C7DE" />
            <DynamicSelectedStyle BackColor="#507CD1" />
            <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <DataBindings>
                <asp:MenuItemBinding DataMember="MenuItem" Depth="0" TextField="Text" NavigateUrlField="Url" />
                <asp:MenuItemBinding DataMember="MenuItem" Depth="1" TextField="Text" NavigateUrlField="Url" />
            </DataBindings>
            <StaticHoverStyle BackColor="#284E98" ForeColor="White" />
        </asp:Menu>
        <asp:XmlDataSource ID="xdsMenu" runat="server" DataFile="~/MenuItems.xml" XPath="/MenuItems/MenuItem">
        </asp:XmlDataSource>
    </div>
    <div>
        <table style="width: 100%">
            <tr>
                <td>
                    <asp:SiteMapPath ID="smpMain" runat="server">
                    </asp:SiteMapPath>
                </td>
                <td style="text-align: center; width: 250px;">
                    <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>&nbsp;<asp:Button ID="btnSearch"
                                                                                               runat="server" Text="搜索" />
                </td>
            </tr>
        </table>
    </div>
</div>